import Relay from "react-relay";

export default class FindSampleCreateByOrderIdMutation extends Relay.Mutation {

    static fragments = {};

    getMutation() {
        return Relay.QL`mutation { findSampleCreateByOrderId }`;
    }

    getVariables() {
        return {
            argsInput: {
                orderId: this.props.orderId,
            }
        };
    }

    getFatQuery() {
        return Relay.QL`fragment on findSampleCreateByOrderIdPayload {
            responseData {
                errorCode
                value
                totalResult
                id  
                sampleCreate{
                     orderId
                }
            }
        }`;
    }

    getConfigs() {
        return [{
            type: 'REQUIRED_CHILDREN',
            children: [Relay.QL`
               fragment on findSampleCreateByOrderIdPayload {
                    responseData {
                            errorCode
                            value
                            totalResult
                            id 
                            sampleCreate{
                                orderId
                            }
                            
                            
                    }
                }
            `]
        }];
    }

}